<?php /* Smarty version 2.6.18, created on 2010-03-16 11:18:18
         compiled from orgInventoryList.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'orgInventoryList.tpl', 20, false),array('modifier', 'number_format', 'orgInventoryList.tpl', 34, false),)), $this); ?>
<div>
	<table border="0" width="100%">
	<tr><td colspan="12"><hr></td></tr>
	<tr>
		<td>Tank</td>
		<td align="center">Image</td>
		<td>MOID</td>
		<td>Group</td>
		<td>Common Name</td>
		<td>Size</td>
		<td align="right">On-Hand</td>
		<td align="right">On-Shipment</td>
		<td align="right">Stock Amt</td>
		<td>MAC Certified</td>
		<td align="right" style="padding-left: 5pt, padding-right: 5pt">&nbsp;&nbsp;DAA&nbsp;&nbsp;</td>
		<td align="right">Last DAA</td>
	</tr>
	<tr><td colspan="12"><hr></td></tr>
	<?php $_from = $this->_tpl_vars['orgInventory']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['inventory']):
?>
	<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
		<!--<?php if ($this->_tpl_vars['inventory']['has_daa'] == '1'): ?>
			<td align="center" style="padding-left: 5pt, padding-right: 5pt">&nbsp;&nbsp;DAA History&nbsp;&nbsp;</td>
		<?php endif; ?>-->
		<td><?php echo $this->_tpl_vars['inventory']['tank_name']; ?>
</td>
		<td width="10%" align="center">   
			<img  onclick="PopEx(this, null, null, null, 300, 50, 'PopBoxImageLarge');" pbCaption="<i><?php echo $this->_tpl_vars['inventory']['scientific_name']; ?>
</i>, <?php echo $this->_tpl_vars['inventory']['common_name']; ?>
" id="trade<?php echo $this->_tpl_vars['key']; ?>
" width="98" src="/app/default/www/images/thumbs/<?php echo $this->_tpl_vars['inventory']['image']; ?>
.jpg" pbsrc="/app/default/www/images/thumbs/<?php echo $this->_tpl_vars['inventory']['image']; ?>
.jpg" class="PopBoxImageSmall" title="Click to magnify/shrink">
		</td>
		<td><?php echo $this->_tpl_vars['inventory']['moid']; ?>
</td>
		<td><?php echo $this->_tpl_vars['inventory']['organism_group']; ?>
</td>
		<td><?php echo $this->_tpl_vars['inventory']['common_name']; ?>
</td>
		<td><?php echo $this->_tpl_vars['inventory']['size']; ?>
</td>
		<td align="right"><?php echo $this->_tpl_vars['inventory']['total_qty_on_hand']; ?>
</td>
		<td align="right"><?php echo $this->_tpl_vars['inventory']['total_qty_on_shipment']; ?>
</td>
		<td align="right"><?php echo $this->_tpl_vars['inventory']['currency_mark']; ?>
&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['inventory']['total_stock_amount'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "2%d") : number_format($_tmp, "2%d")); ?>
</td>
		<td><?php echo $this->_tpl_vars['inventory']['mac_certified']; ?>
</td>
		<td align="right"><?php echo $this->_tpl_vars['inventory']['quantity_daa']; ?>
&nbsp;&nbsp;</td>
		<td align="right">
			<a href="javascript:void(0);" onclick="showDAA('<?php echo $this->_tpl_vars['inventory']['inventory_id']; ?>
','<?php echo $this->_tpl_vars['inventory']['tank_name']; ?>
','<?php echo $this->_tpl_vars['inventory']['moid']; ?>
');"><?php echo $this->_tpl_vars['inventory']['date_mortality']; ?>
</a>
		</td>
	</tr>
	<?php endforeach; endif; unset($_from); ?>
	</table>
</div>